<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
    body{
        margin: 0;
        padding:0;
        background: #f1f1f1;
    }
    .loading{
        position: absolute;
        top: 50%;
        left:50%;
        transform: translate(-50%,-50%) ;
        width: 15px;
        height: 15px;
        background-color: black;
    }
    .loading::before,.loading::after{
        content:"";
        position: absolute;
        top: 50%;
        left:50%;
        transform: translate(-50%,-50%);
        width: 15px;
        height: 15px;
        border-radius: 15px;
        animation:loading 1.5s infinite linear;
    }
    @keyframes loading {
        50%{
            height: 45px;
        }
    }
    .loading::before{
        box-shadow:15px 15px hotpink, -15px -15px orange;
    }
    .loading::after{
        box-shadow:15px 15px teal, -15px -15px grey;
        transform:translate(-50%,-50%) rotate(90deg);
    }
    </style>
</head>
<body>
    <div class="loading"></div>
</body>
</html>